package edu.sctu.zhoumengxue.day201506.day20150623;

/**
 * Created by user12 on 2015/6/24.
 */
public class JsonMain {

    public static void main(String[] args) {

        JsonPath path = new JsonPath();
        String URL = path.getParam();

        PostURL1 postURL1 = new PostURL1();
        String appbeans = postURL1.getHTTPURL(URL);

        JsonUtil util = new JsonUtil();
        JsonAppbean jsonAppbean = util.getJson(appbeans);

        System.out.println(jsonAppbean.error);
        System.out.println(jsonAppbean.message);

        for (int i = 0; i < jsonAppbean.list.size(); i++) {
            System.out.println(jsonAppbean.list.get(i).brand_id);
            System.out.println(jsonAppbean.list.get(i).category_id);
            System.out.println(jsonAppbean.list.get(i).rec_id);
            System.out.println(jsonAppbean.list.get(i).goods_id);
            System.out.println(jsonAppbean.list.get(i).goods_name);
            System.out.println(jsonAppbean.list.get(i).goods_price);
            System.out.println(jsonAppbean.list.get(i).goods_introduce);
        }

    }

}
